package com.mornd.gulimall.apis.coupon.to;

import com.mornd.gulimall.apis.product.to.SkuInfoTo;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 秒杀活动商品关联
 * </p>
 *
 * @author mornd
 * @since 2023-08-05
 */
@Getter
@Setter
public class SeckillSkuRelationTo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 活动id
     */
    private Long promotionId;

    /**
     * 活动场次id
     */
    private Long promotionSessionId;

    /**
     * 商品id
     */
    private Long skuId;

    /**
     * 秒杀价格
     */
    private BigDecimal seckillPrice;

    /**
     * 秒杀总量
     */
    private Long seckillCount;

    /**
     * 每人限购数量
     */
    private Integer seckillLimit;

    /**
     * 排序
     */
    private Integer seckillSort;

    /**
     * sku详情
     */
    private SkuInfoTo skuInfoTo;

    private long seckillStartTime;
    private long seckillendTime;

    // 秒杀随机码
    private String randomCode;


}
